<?php
// +----------------------------------------------------------------------
// | Longbing [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright Chengdu longbing Technology Co., Ltd.
// +----------------------------------------------------------------------
// | Website http://longbing.org/
// +----------------------------------------------------------------------
// | Sales manager: +86-13558882532 / +86-13330887474
// | Technical support: +86-15680635005
// | After-sale service: +86-17361005938
// +----------------------------------------------------------------------

declare(strict_types=1);

use think\facade\Route;


Route::group('admin', function () {
    //房产户型列表
    Route::group('AdminApartment', function () {
        Route::any('apartmentList', 'AdminApartment/apartmentList');
        Route::any('apartmentAdd', 'AdminApartment/apartmentAdd');
        Route::any('apartmentUpdate', 'AdminApartment/apartmentUpdate');
        Route::any('apartmentDel', 'AdminApartment/apartmentDel');
    });


    //房产预约列表
    Route::group('AdminAppointment', function () {
        Route::any('appList', 'AdminAppointment/appList');
    });


    //房产区域列表
    Route::group('AdminArea', function () {
        Route::any('areaList', 'AdminArea/areaList');
        Route::any('areaAdd', 'AdminArea/areaAdd');
        Route::any('areaUpdate', 'AdminArea/areaUpdate');
        Route::any('changeData', 'AdminArea/changeData');
        Route::any('getLevel', 'AdminArea/getLevel');
        Route::any('levelArea', 'AdminArea/levelArea');
        Route::any('areaDel', 'AdminArea/areaDel');
    });


    //房产banner列表
    Route::group('AdminBanner', function () {
        Route::any('bannerList', 'AdminBanner/bannerList');
        Route::any('bannerAdd', 'AdminBanner/bannerAdd');
        Route::any('bannerUpdate', 'AdminBanner/bannerUpdate');
    });


    //房产分类列表
    Route::group('AdminCate', function () {
        Route::any('cateList', 'AdminCate/cateList');
        Route::any('cateAdd', 'AdminCate/cateAdd');
        Route::any('cateUpdate', 'AdminCate/cateUpdate');
        Route::any('cateDel', 'AdminCate/cateDel');
        Route::any('getCateData', 'AdminCate/getCateData');
    });


    //房产banner列表
    Route::group('AdminHouse', function () {
        Route::any('houseList', 'AdminHouse/houseList');
        Route::any('changeData', 'AdminHouse/changeData');
        Route::any('houseAdd', 'AdminHouse/houseAdd');
        Route::any('houseUpdate', 'AdminHouse/houseUpdate');
        Route::any('areaId', 'AdminHouse/areaId');
        Route::any('houseAbout', 'AdminHouse/houseAbout');
        Route::any('statusUpdate', 'AdminHouse/statusUpdate');
        Route::any('houseSetting', 'AdminHouse/houseSetting');
        Route::any('houseSettingUpdate', 'AdminHouse/houseSettingUpdate');
        Route::any('getStaffInfo', 'AdminHouse/getStaffInfo');
        //长页面列表
        Route::get('longPageList', 'AdminHouse/longPageList');
        //长页面详情
        Route::get('longPageInfo', 'AdminHouse/longPageInfo');
        //长页面添加
        Route::post('longPageAdd', 'AdminHouse/longPageAdd');
        //长页面编辑
        Route::post('longPageUpdate', 'AdminHouse/longPageUpdate');
        //报名列表（house_id）
        Route::get('longPageRecord', 'AdminHouse/longPageRecord');
    });


    //房产价格列表
    Route::group('AdminPrice', function () {
        Route::any('priceList', 'AdminPrice/priceList');
        Route::any('priceAdd', 'AdminPrice/priceAdd');
        Route::any('priceUpdate', 'AdminPrice/priceUpdate');
        Route::any('priceDel', 'AdminPrice/priceDel');
    });


});





Route::group('app', function () {

    //我的房源
    Route::group('IndexAppHouse', function () {
        Route::any('myHouse', 'IndexAppHouse/myHouse');
        Route::any('addCollect', 'IndexAppHouse/addCollect');
        Route::any('addApp', 'IndexAppHouse/addApp');
        Route::any('appText', 'IndexAppHouse/appText');
        Route::any('collectText', 'IndexAppHouse/collectText');

        //长页面列表
        Route::get('longPageList', 'IndexHouse/longPageList');
        //长页面详情
        Route::get('longPageInfo', 'IndexHouse/longPageInfo');
        //报名
        Route::post('longPageRecordApp', 'IndexHouse/longPageRecordApp');
    });

    //房源列表
    Route::group('IndexHouse', function () {
        Route::any('houseList', 'IndexHouse/houseList');
        Route::any('staffHouseList', 'IndexHouse/staffHouseList');
        Route::any('staffHouseInfo', 'IndexHouse/staffHouseInfo');
        Route::any('houseIndex', 'IndexHouse/houseIndex');
        Route::any('houseId', 'IndexHouse/houseId');
        Route::any('houseInfo', 'IndexHouse/houseInfo');
        Route::any('houseSetting', 'IndexHouse/houseSetting');
        Route::any('houseQr', 'IndexHouse/houseQr');
        Route::any('houseStaffList', 'IndexHouse/houseStaffList');
        Route::any('houseSettingConfig', 'IndexHouse/houseSettingConfig');
    });

});



//===================================================oldapi
//我的房源
Route::group('IndexAppHouse', function () {
    Route::any('myHouse', 'IndexAppHouse/myHouse');
    Route::any('addCollect', 'IndexAppHouse/addCollect');
    Route::any('addApp', 'IndexAppHouse/addApp');
    Route::any('appText', 'IndexAppHouse/appText');
    Route::any('collectText', 'IndexAppHouse/collectText');
});

//房源列表
Route::group('IndexHouse', function () {
    Route::any('houseList', 'IndexHouse/houseList');
    Route::any('staffHouseList', 'IndexHouse/staffHouseList');
    Route::any('staffHouseInfo', 'IndexHouse/staffHouseInfo');
    Route::any('houseIndex', 'IndexHouse/houseIndex');
    Route::any('houseId', 'IndexHouse/houseId');
    Route::any('houseInfo', 'IndexHouse/houseInfo');
    Route::any('houseSetting', 'IndexHouse/houseSetting');
    Route::any('houseQr', 'IndexHouse/houseQr');
    Route::any('houseStaffList', 'IndexHouse/houseStaffList');
    Route::any('houseSettingConfig', 'IndexHouse/houseSettingConfig');
});


//房产户型列表
Route::group('AdminApartment', function () {
    Route::any('apartmentList', 'AdminApartment/apartmentList');
    Route::any('apartmentAdd', 'AdminApartment/apartmentAdd');
    Route::any('apartmentUpdate', 'AdminApartment/apartmentUpdate');
    Route::any('apartmentDel', 'AdminApartment/apartmentDel');
});


//房产预约列表
Route::group('AdminAppointment', function () {
    Route::any('appList', 'AdminAppointment/appList');
});


//房产区域列表
Route::group('AdminArea', function () {
    Route::any('areaList', 'AdminArea/areaList');
    Route::any('areaAdd', 'AdminArea/areaAdd');
    Route::any('areaUpdate', 'AdminArea/areaUpdate');
    Route::any('changeData', 'AdminArea/changeData');
    Route::any('getLevel', 'AdminArea/getLevel');
    Route::any('levelArea', 'AdminArea/levelArea');
    Route::any('areaDel', 'AdminArea/areaDel');
});


//房产banner列表
Route::group('AdminBanner', function () {
    Route::any('bannerList', 'AdminBanner/bannerList');
    Route::any('bannerAdd', 'AdminBanner/bannerAdd');
    Route::any('bannerUpdate', 'AdminBanner/bannerUpdate');
});


//房产banner列表
Route::group('AdminCate', function () {
    Route::any('cateList', 'AdminCate/cateList');
    Route::any('cateAdd', 'AdminCate/cateAdd');
    Route::any('cateUpdate', 'AdminCate/cateUpdate');
});


//房产banner列表
Route::group('AdminHouse', function () {
    Route::any('houseList', 'AdminHouse/houseList');
    Route::any('changeData', 'AdminHouse/changeData');
    Route::any('houseAdd', 'AdminHouse/houseAdd');
    Route::any('houseUpdate', 'AdminHouse/houseUpdate');
    Route::any('areaId', 'AdminHouse/areaId');
    Route::any('houseAbout', 'AdminHouse/houseAbout');
    Route::any('statusUpdate', 'AdminHouse/statusUpdate');
});


//房产价格列表
Route::group('AdminPrice', function () {
    Route::any('priceList', 'AdminPrice/priceList');
    Route::any('priceAdd', 'AdminPrice/priceAdd');
    Route::any('priceUpdate', 'AdminPrice/priceUpdate');
    Route::any('priceDel', 'AdminPrice/priceDel');
});
